| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var deptData = null; |
||
| 58 | function initPage() |
||
| 59 | { |
||
| 60 | var id = getParameterByName('id'); |
||
| 61 | if(id === null) |
||
| 62 | { |
||
| 63 | $.ajax({ |
||
| 64 | url: 'api/v1/departments?$top=1', |
||
| 65 | type: 'GET', |
||
| 66 | dataType: 'json', |
||
| 67 | complete: getDepartmentDone}); |
||
| 68 | } |
||
| 69 | else |
||
| 70 | { |
||
| 71 | $.ajax({ |
||
| 72 | url: 'api/v1/departments/'+id, |
||
| 73 | type: 'GET', |
||
| 74 | dataType: 'json', |
||
| 75 | complete: getDepartmentDone}); |
||
| 76 | } |
||
| 77 | } |
||
| 78 | |||
| 80 |